In the callback, we simply call retrieveTodos() which sets the updated todos array as the state.

Running your App

When you run your app now and log in, a user will be able to delete todos they have posted. We have almost

completed the entire functionality of our app using the Django API React stack. What ’ s left is marking a todo as

complete. Let ’ s first see how to do so in the next chapter.